﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class ArrayUtil
    {
        public static void Array()
        {
            bool flag;
            string[] arr = new string[4];
            for (int i = 0; i < arr.Length; i++)
            {
                Console.WriteLine("请输入第" + (i + 1) + "个数");
                arr[i] = Console.ReadLine();
            }
            for (int i = 0; i < arr.Length; i++)
            {
                Console.Write(arr[i] + " ");
            }
            for (int i = 0; i < arr.Length; i++)
            {
                if (string.IsNullOrWhiteSpace(arr[i]))
                {
                    flag = true;
                }
                else if (arr.Length == 0)
                {
                    flag = true;
                }
                else
                {
                    flag = false;

                }
                Console.WriteLine(flag);
            }

        }
    }
}
